/*
 * XML Type:  contentLocationType
 * Namespace: info:fedora/fedora-system:def/foxml#
 * Java type: fedora.fedoraSystemDef.foxml.ContentLocationType
 *
 * Automatically generated - do not modify.
 */
package fedora.fedoraSystemDef.foxml.impl;
/**
 * An XML contentLocationType(@info:fedora/fedora-system:def/foxml#).
 *
 * This is a complex type.
 */
public class ContentLocationTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements fedora.fedoraSystemDef.foxml.ContentLocationType
{
    private static final long serialVersionUID = 1L;
    
    public ContentLocationTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TYPE$0 = 
        new javax.xml.namespace.QName("", "TYPE");
    private static final javax.xml.namespace.QName REF$2 = 
        new javax.xml.namespace.QName("", "REF");
    
    
    /**
     * Gets the "TYPE" attribute
     */
    public fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE.Enum getTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$0);
            if (target == null)
            {
                return null;
            }
            return (fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "TYPE" attribute
     */
    public fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE xgetTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE target = null;
            target = (fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE)get_store().find_attribute_user(TYPE$0);
            return target;
        }
    }
    
    /**
     * Sets the "TYPE" attribute
     */
    public void setTYPE(fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE.Enum type)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$0);
            }
            target.setEnumValue(type);
        }
    }
    
    /**
     * Sets (as xml) the "TYPE" attribute
     */
    public void xsetTYPE(fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE type)
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE target = null;
            target = (fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE)get_store().find_attribute_user(TYPE$0);
            if (target == null)
            {
                target = (fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE)get_store().add_attribute_user(TYPE$0);
            }
            target.set(type);
        }
    }
    
    /**
     * Gets the "REF" attribute
     */
    public java.lang.String getREF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "REF" attribute
     */
    public fedora.fedoraSystemDef.foxml.ContentLocationType.REF xgetREF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.ContentLocationType.REF target = null;
            target = (fedora.fedoraSystemDef.foxml.ContentLocationType.REF)get_store().find_attribute_user(REF$2);
            return target;
        }
    }
    
    /**
     * Sets the "REF" attribute
     */
    public void setREF(java.lang.String ref)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REF$2);
            }
            target.setStringValue(ref);
        }
    }
    
    /**
     * Sets (as xml) the "REF" attribute
     */
    public void xsetREF(fedora.fedoraSystemDef.foxml.ContentLocationType.REF ref)
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.ContentLocationType.REF target = null;
            target = (fedora.fedoraSystemDef.foxml.ContentLocationType.REF)get_store().find_attribute_user(REF$2);
            if (target == null)
            {
                target = (fedora.fedoraSystemDef.foxml.ContentLocationType.REF)get_store().add_attribute_user(REF$2);
            }
            target.set(ref);
        }
    }
    /**
     * An XML TYPE(@).
     *
     * This is an atomic type that is a restriction of fedora.fedoraSystemDef.foxml.ContentLocationType$TYPE.
     */
    public static class TYPEImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements fedora.fedoraSystemDef.foxml.ContentLocationType.TYPE
    {
        private static final long serialVersionUID = 1L;
        
        public TYPEImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType, false);
        }
        
        protected TYPEImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
        {
            super(sType, b);
        }
    }
    /**
     * An XML REF(@).
     *
     * This is an atomic type that is a restriction of fedora.fedoraSystemDef.foxml.ContentLocationType$REF.
     */
    public static class REFImpl extends org.apache.xmlbeans.impl.values.JavaUriHolderEx implements fedora.fedoraSystemDef.foxml.ContentLocationType.REF
    {
        private static final long serialVersionUID = 1L;
        
        public REFImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType, false);
        }
        
        protected REFImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
        {
            super(sType, b);
        }
    }
}
